$(function () {
    HOME.ajaxHOMEFn({
        url: HOME.baseUrl.pay_create,
        type: 'POST',
        dataType: 'json',
        data: {
            g_id: HOME.getQueryVariable('curId')
        }
    }, function (res) {
        res.id=HOME.getQueryVariable('id')
        res.type=HOME.getQueryVariable('type')
        res.typeAssort=HOME.getQueryVariable('typeAssort')
        res.curId = HOME.getQueryVariable('curId')
        $('#pay').html(template('payTpl', {'res': res}));
        var windowHeight = $(window).height();
        var mainWrapHeight = $('.free_box').height();
        if(mainWrapHeight < windowHeight - 170){
            $('.free_box').height(windowHeight - 170 + 'px');
        }
    });



    

})

